<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// $Id$
return [

    // 模板参数替换
    'view_replace_str'       => array(
        '__CSS__'    => '/static/index/css',
        '__JS__'     => '/static/index/js',
        '__IMG__' => '/static/index/imgs',
        '__LIB__' => '/static/index/lib',
        '__STATIC__' => '/static/index',
    ),
    // +----------------------------------------------------------------------
    // | session设置
    // +----------------------------------------------------------------------

    'session' => [
        'id' => '',
        'expire' => 3600*24*7,//全局7天
        // SESSION_ID的提交变量,解决flash上传跨域
        'var_session_id' => 'ses',
        //这个值很重要，设置上去后session过期时间才有效 跟cookie时间相比起来 cookie销毁时间会比session慢几秒
        // SESSION 前缀
        'prefix' => '',
        // 驱动方式 支持redis memcache memcached
        'type' => '',
        // 是否自动开启 SESSION
        'auto_start' => true,
    ],
];
